
<div class="block top4 blank">
 <ul class="clearfix" id="topGoods">
 <?php $_from = $this->_var['top_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['top_goods'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['top_goods']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['top_goods']['iteration']++;
?>
  <?php if (($this->_foreach['top_goods']['iteration'] - 1) < 4): ?>
  <li>
	 <p><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['short_name']); ?>"><?php echo sub_str($this->_var['goods']['short_name'],6); ?></a></p>
	 <a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" /></a>
	</li>
	 <?php endif; ?>
 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </ul>
</div>
<script type="text/javascript">
//top10("topGoods");
PinClass("topGoods");
</script>
